package com.manager.kudian.system.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * AccountStatementHis entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "account_statement_his")
public class AccountStatementHis implements java.io.Serializable {

	// Fields

	private Integer ashId;
	private String asDay;
	private Timestamp addTime;

	// Constructors

	/** default constructor */
	public AccountStatementHis() {
	}

	/** full constructor */
	public AccountStatementHis(String asDay, Timestamp addTime) {
		this.asDay = asDay;
		this.addTime = addTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ash_id", unique = true, nullable = false)
	public Integer getAshId() {
		return this.ashId;
	}

	public void setAshId(Integer ashId) {
		this.ashId = ashId;
	}

	@Column(name = "as_day", nullable = false, length = 8)
	public String getAsDay() {
		return this.asDay;
	}

	public void setAsDay(String asDay) {
		this.asDay = asDay;
	}

	@Column(name = "add_time", nullable = false, length = 19)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	public Timestamp getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Timestamp addTime) {
		this.addTime = addTime;
	}

}